package cn.rongdao.jrkabao.ui.cashcoupon.mycashcoupon.adapter;

import android.view.View;

import com.mifengkong.frtools.ui.adapter.recyclerview.FRBaseRecyclerViewHolder;

import cn.rongdao.jrkabao.bean.cashcoupon.GetCashCouponBean;
import cn.rongdao.jrkabao.ui.cashcoupon.uicomponent.MyCashCouponUIComponent;

/**
 * Created by jack on 2017/8/14
 */

public class CashCouponViewHolder extends FRBaseRecyclerViewHolder<GetCashCouponBean> {

    private MyCashCouponUIComponent myCashCouponUIComponent;

    private boolean isUnUse;

    private boolean isInvalid;

    public CashCouponViewHolder(View view, boolean isUnUse, boolean isInvalid) {
        super(view);
        myCashCouponUIComponent = (MyCashCouponUIComponent) view;
        this.isUnUse = isUnUse;
        this.isInvalid = isInvalid;
    }

    @Override
    protected void onItemDataUpdated(GetCashCouponBean getCashCouponBean) {
        myCashCouponUIComponent.setContent(isUnUse, isInvalid, getCashCouponBean);
    }
}
